package com.exercise.family

import com.alibaba.fastjson.JSONObject

class TT extends FunBase {

    static TT drive = new TT()


    public JSONObject listParams() {
        String url = "/test/d"
        def object = new JSONObject()
        object.put("age", 3)
        object.put("name", "fun")
        object.put("fun", getJson("32d242=our"))
        def object1 = new JSONObject()
        object1.put("id", 3)
        def clone = object1.clone()
        object.put("s", [object1, clone])

        def response = getPostResponse(url, object)
        output(response)
    }

    public static void main(String[] args) {
        drive.listParams()
    }
}

